<extend name="Layout:layout_content" />
<block name="body_main"> 
    <ul class="xsui-breadcrumb">
        <li><a href="{:U('document_list')}"><i  class="fa fa-home fa-fw"></i>公告管理</a></li>
        <li class="current">{$meta_title}</li>
    </ul>
    <h3 class="htitle">{$meta_title}</h3>
    <form action="{:U('document_edit_save')}" method="post" class="xsui-form" enctype="multipart/form-data" style="min-width:800px;">
        <fieldset>
            <div class="xsui-form-field">
                <label>标题：</label>
                <input type="text" name="title" placeholder="标题" value="{$data.title}" title="{$data.title}" size="80" required="required" />
            </div>
            <div class="xsui-form-field-vertical">
                <label>正文内容：</label>
                <textarea name="content" class="xsui-editor" cols="90" rows="6" style="width:99%">{$data.content}</textarea>
            </div>
            <div class="xsui-form-field">
                <label>发布时间：</label>
                <input type="text" name="create_time" value="{$data.create_time|default=date('Y-m-d H:i:s')}" placeholder="发布时间" class="datetimepicker" />
            </div>
            <div class="xsui-form-field xsui-form-mgb">
                <label>状态：</label>
                <sohtml:radio name="status" items="1:显示;0:隐藏" value="{$data.status|default=1}" required="required" />
            </div>
        </fieldset>
        <button type="submit" class="ui-state-default"><i class="fa fa-save"></i>发布</button>
        <button type="reset" class="ui-state-default">重置</button>
        <input type="hidden" name="id" value="{$data.id}"/>
        <input type="hidden" name="site_id" value="{$data.site_id}"/>
        <input type="hidden" name="user_name" value="{$data.user_name}"/>
    </form>
</block>